package com.sxbang.friday.service;
import com.sxbang.friday.base.result.Results;
import com.sxbang.friday.model.SysUser;

public interface UserService {
	SysUser getUser(String username);

    /**
     * 分页获取用户
     * @param offset
     * @param limit
     * @return
     */
    Results<SysUser> getAllUsersByPage(Integer offset, Integer limit);

    /**
     * 新建用户
     * @param sysUser
     * @param roleId
     * @return
     */
    Results save(SysUser sysUser, Integer roleId);
}
